package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName mini_reward
 */
@TableName(value ="mini_reward")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MiniReward implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 代理id
     */
    private Long proxyId;

    /**
     * 开始金额
     */
    private BigDecimal moneyFrom;

    /**
     * 截止金额
     */
    private BigDecimal moneyTo;

    /**
     * 可得佣金
     */
    private BigDecimal reward;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除 1已删除 0未删除
     */
    private String deleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public MiniReward(Long proxyId, BigDecimal moneyFrom, BigDecimal moneyTo, BigDecimal reward) {
        this.proxyId = proxyId;
        this.moneyFrom = moneyFrom;
        this.moneyTo = moneyTo;
        this.reward = reward;
    }
}